package com.esri.core.internal.tasks.e.b;

import java.util.HashMap;
import java.util.Map;

/* loaded from: classes.dex */
public abstract class f extends com.esri.core.internal.tasks.f {
    private static final long serialVersionUID = 1;
    protected String b = "1.0.0";
    protected Map<String, String> c;
    protected String d;

    public f(String str) {
        this.d = str;
    }

    public void b(String str) {
        this.b = str;
    }

    public String c() {
        return this.b;
    }

    public void a(Map<String, String> map) {
        this.c = map;
    }

    public Map<String, String> d() {
        return this.c;
    }

    @Override // com.esri.core.internal.tasks.f
    public Map<String, String> generateRequestParams() {
        HashMap hashMap = this.c != null ? new HashMap(this.c) : new HashMap();
        hashMap.put("Service", "WMTS");
        hashMap.put("Request", this.d);
        String str = this.b;
        if (str != null && str.length() > 0) {
            hashMap.put("Version", this.b);
        }
        return hashMap;
    }
}
